package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 管理端可增删改查对象 ahhc_items
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
public class AhhcItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物品编码 */
    private String code;

    /** 一类（入量/出量） */
    @Excel(name = "一类", readConverterExp = "入=量/出量")
    private String category1;

    /** 二类（饮品/餐食等） */
    @Excel(name = "二类", readConverterExp = "饮=品/餐食等")
    private String category2;

    /** 三类（具体物品名称） */
    @Excel(name = "三类", readConverterExp = "具=体物品名称")
    private String category3;

    /** 单位（毫升/克等） */
    @Excel(name = "单位", readConverterExp = "毫=升/克等")
    private String unit;

    /** 每单位含水量（毫升） */
    @Excel(name = "每单位含水量", readConverterExp = "毫=升")
    private BigDecimal waterContent;

    /** 是否输入基础量 */
    @Excel(name = "是否输入基础量")
    private Integer allowBaseInput;

    /** 是否输入剩余量 */
    @Excel(name = "是否输入剩余量")
    private Integer allowRemainInput;

    /** 患者录入权限 */
    @Excel(name = "患者录入权限")
    private Integer patientEdit;

    /** 医护录入权限 */
    @Excel(name = "医护录入权限")
    private Integer staffEdit;

    /** 备注（如快速选择规则） */
    @Excel(name = "备注", readConverterExp = "如=快速选择规则")
    private String notes;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setCategory1(String category1) 
    {
        this.category1 = category1;
    }

    public String getCategory1() 
    {
        return category1;
    }

    public void setCategory2(String category2) 
    {
        this.category2 = category2;
    }

    public String getCategory2() 
    {
        return category2;
    }

    public void setCategory3(String category3) 
    {
        this.category3 = category3;
    }

    public String getCategory3() 
    {
        return category3;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setWaterContent(BigDecimal waterContent) 
    {
        this.waterContent = waterContent;
    }

    public BigDecimal getWaterContent() 
    {
        return waterContent;
    }

    public void setAllowBaseInput(Integer allowBaseInput) 
    {
        this.allowBaseInput = allowBaseInput;
    }

    public Integer getAllowBaseInput() 
    {
        return allowBaseInput;
    }

    public void setAllowRemainInput(Integer allowRemainInput) 
    {
        this.allowRemainInput = allowRemainInput;
    }

    public Integer getAllowRemainInput() 
    {
        return allowRemainInput;
    }

    public void setPatientEdit(Integer patientEdit) 
    {
        this.patientEdit = patientEdit;
    }

    public Integer getPatientEdit() 
    {
        return patientEdit;
    }

    public void setStaffEdit(Integer staffEdit) 
    {
        this.staffEdit = staffEdit;
    }

    public Integer getStaffEdit() 
    {
        return staffEdit;
    }

    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public void setModifiedTime(Date modifiedTime) 
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime() 
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("category1", getCategory1())
            .append("category2", getCategory2())
            .append("category3", getCategory3())
            .append("unit", getUnit())
            .append("waterContent", getWaterContent())
            .append("allowBaseInput", getAllowBaseInput())
            .append("allowRemainInput", getAllowRemainInput())
            .append("patientEdit", getPatientEdit())
            .append("staffEdit", getStaffEdit())
            .append("notes", getNotes())
            .append("modifiedTime", getModifiedTime())
            .toString();
    }
}
